<template>
	<view class="onelog">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" class="pictures">
			<swiper-item>
				<view class="swiper-item"></view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item"></view>
			</swiper-item>
		</swiper>
		<view class="content">
			<view class="title">
				{{title}}
			</view>
			<view class="text">
				{{text}}
			</view>
		</view>
		<view class="time">
			{{time}}
		</view>
	</view>
</template>

<script>
	export default {
		name:"onelog",
		data() {
			return {
				title:'找到旅游搭子了！下周出发',
				text:'开个日志记录一下，怎么不算vlog呢，旅游路上不定时更新',
				time:'2023.8.22  14:18'
			};
		}
	}
</script>

<style lang="scss">
.onelog {
	width: 670rpx;
	height: 400rpx;
	box-shadow: 10rpx 10rpx 20rpx 10rpx rgba(0,0,0,0.2);
	border-radius: 30rpx;
	margin-top: 45rpx;
	margin-left: 40rpx;
	padding-top: 40rpx;
	position: relative;
	margin-bottom: 30rpx;
	
	.pictures {
		width: 270rpx;
		height: 400rpx;
		border-radius: 40rpx;
		margin-left: 35rpx;
		margin-right: 35rpx;
		display: inline-block;
		.swiper-item {
			height: 350rpx;
			width: 270rpx;
			border-radius: 40rpx;
			background-color: pink;
		}
	}
	.content {
		display: inline-block;
		width: 300rpx;
		position: relative;
		top: -190rpx;
		.title {
			font-weight: bold;
			font-size: 30rpx;
			margin-bottom: 20rpx;
		}
		.text {
			font-weight: bold;
			font-size: 30rpx;
		}
	}
	.time {
		position: absolute;
		right: 30rpx;
		bottom: 20rpx;
		font-size: 27rpx;
		font-weight: bold;
	}
}
</style>